﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Rtgs.master" AutoEventWireup="true"
    CodeFile="default.aspx.cs" Inherits="_default" %>

<asp:Content ID="Content1" ContentPlaceHolderID="body" runat="Server">
    <link type="text/css" rel="stylesheet" href="<%= ResolveClientUrl("~/css/ui.jqgrid.css") %>" />
    <div class="logo_index">
        <img src="<%= ResolveClientUrl("~/images/bankofchina_LOGO-100.gif") %>" /></div>
    <div class="intro">
        Bank Of China
        <br />
        <br />
        BOC Aviation Ordered 50 A320 Family Aircraft BOC’s Precious Metal and Personal Loan
        Services Won Customer Satisfaction Award BOC Set Up Chinese Business Counter in
        Uganda Strategic Cooperation Framework Agreement Signed by Bank of China and HNA
        Group
        <br />
        <br />
    </div>
    <div class="intro2">
        Announcement on Temporary Suspension of BOC Online Banking and Mobile Banking...
    </div>
    <div class="clearku">
    </div>
    <div id="dialog" title="Default dialog">
    </div>
    <script type="text/javascript">

        $(document).ready(function () {

            var userId = '<%= base.UserID %>';

                        $.ajax({
                            type: 'POST',
                            url: 'ajaxhandler/usermanagement/sys_t_user.ashx?method=getexpiredpassword&id=' + userId,
                            contentType: 'application/json',
                            dataType: 'json',
                            success: function (data) {
                                var user = '<%= base.UserLoggedIn  %>';
                                if (user.toLowerCase() != 'admin' && user.toLowerCase() != 'sa') {

                                    if (data.expired == "true") {
                                    OpenForm();
                                    }
                                }
                            },
                            error: function () {
                                alert('Error!');
                            }
                        });

            

        });

        function OpenForm() {

            var formUrl = '<%= ResolveUrl("~/form/usermanagement/change_passwordform.aspx") %>';

            $('#dialog').load(formUrl).dialog({
                closeOnEscape: false, autoOpen: false, modal: true, width: 400, height: 200, title: 'Change Password'
            });

            $("#dialog").dialog('open');

            $('#dialog').parent().find('a.ui-dialog-titlebar-close').remove();

        }
    
    </script>
</asp:Content>
